package multithreading.homework.snck;

import java.util.LinkedList;

public class Text {

    public static void main(String[] args) throws Exception {
        LinkedList<String> A=new LinkedList<>();
        for (int i = 0; i < 1000; i++) {
            A.add("礼物");
        }
      Demo s=new Demo(A,"小明");
        s.start();
     Demo z= new Demo(A,"小红");
     z.start();
     s.join();
     z.join();


    }
}
